// import MainLayout from './mainLayout.vue'
// import NullLayout from './nullLayout.vue'

const MainLayout = ()=> import('./mainLayout.vue')
const NullLayout = ()=> import('./nullLayout.vue')
const PageLayout = ()=> import('./pageLayout.vue')
const plugin = function(VC){
    VC.component('MainLayout',MainLayout)
    VC.component('NullLayout',NullLayout)
    VC.component('PageLayout',PageLayout)
    VC.filter( 'typeFilter',function(val ,types){
        let dict = types.find(it=>it.code===val)
        if(!dict) return val
        return dict.name
    },)
}
export default plugin